<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .outer {
            width: 1000px;
            height: 900px;
            border: 1px solid black;
        }

        .outer:hover .box{
            /*鼠标移入的时候，每个box宽度过度到1000px*/
            width: 1000px;
        }

        .box {
            width: 200px;
            height: 100px;
            background-color: orange;
            /*
            1、启用过度，设置哪些属性进行过渡
             */
            transition-property: all;
            /*
            1、设置过度时间
            */
            transition-duration: 5s;
            /*延迟：鼠标移入的时候延迟2s在过度*/
            transition-delay:0s ;
        }

        .box1 {
            background-color: skyblue;
            /*
              transition-timing-function过度方式：
            ease:默认值，平滑多度，（慢快慢）
            linear：匀速
            ease-in:先慢后快
            ease-out:先快后慢
            ease-in-out：先慢后快再慢
            step-start:不考虑过度时间，直接跳到过度的终点
            step-end：考虑过度时间，时间结束后在直接跳到过度的起点
            steps(20)：分步过度，分了20个步骤，每个步骤一窜一串的往前走，
            steps(20，end)：默认，分步过度，后窜
            steps(20，start)：先窜
            贝塞尔曲线：transition-timing-function: cubic-bezier(0.87,1.12,0.89,1.28);
            把网址https://cubic-bezier.com上的数据放到cubic-bezier中查看效果
            可以橡皮筋效果
            */
            transition-timing-function: ease;
        }
        .box2 {
            background-color: pink;
            transition-timing-function: linear;
        }
        .box3 {
            background-color: skyblue;
            transition-timing-function: ease-in;
        }
        .box4 {
            background-color: green;
            transition-timing-function: ease-out;
        }
        .box5 {
            background-color: tomato;
            transition-timing-function: ease-in-out;
        }
        .box6 {
            background-color:purple ;
            transition-timing-function: step-start;
        }
        .box7 {
            background-color: deepskyblue;
            transition-timing-function: step-end;
        }
        .box8 {
            background-color: chartreuse;
            transition-timing-function: steps(20);
        }
        .box9 {
            background-color: black;
            transition-timing-function: cubic-bezier(0.87,1.12,0.89,1.28);
        }

    </style>
</head>
<body>
<div class="outer">
    <div class="box box1">ease平滑过度（慢快慢）</div>
    <div class="box box2">匀速</div>
    <div class="box box3">啊啊啊啊</div>
    <div class="box box4">啊啊啊啊</div>
    <div class="box box5">啊啊啊啊</div>
    <div class="box box6">啊啊啊啊</div>
    <div class="box box7">啊啊啊啊</div>
    <div class="box box8">啊啊啊啊</div>
    <div class="box box9">贝塞尔曲线</div>
</div>

</body>
</html>